package com.bwie.common.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName:
 * @Description:
 * @Author: zengfanzhen
 * @Date: 2024/4/11 20:06:22
 */

@Entity
@Table(name = "data1")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Data1 implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "编号 对应id")
    private String id;

    @ApiModelProperty(value = "姓名 XM")
    private String XM;

    @ApiModelProperty(value = "证件号 Card")
    private String Card;

    @ApiModelProperty(value = "年龄 Age")
    private Integer Age;

    @ApiModelProperty(value = "日期时间 Time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date Time;

}


